const columns = [
  {
    title: '收藏',
    key: 'topTime',
    scopedSlots: { customRender: 'topTime' },
  },
  {
    title: '名称',
    dataIndex: 'slotName',
    key: 'slotName',
    scopedSlots: { customRender: 'slotName' },
  },
  {
    title: '所属媒体',
    dataIndex: 'appName',
    key: 'appName',
  },
  {
    title: '广告位Key',
    dataIndex: 'slotKey',
    key: 'slotKey',
  },
  {
    title: '投放链接',
    key: 'link',
    scopedSlots: { customRender: 'link' },
  },
  {
    title: '操作',
    key: 'action',
    scopedSlots: { customRender: 'action' },
  },
]

const projectColumn = [
  {
    title: '排序',
    key: 'sortrank',
    scopedSlots: { customRender: 'sortrank' },
  },
  {
    title: '计划名称',
    key: 'planName',
    dataIndex: 'planName',
    scopedSlots: { customRender: 'planName' },
  },
  {
    title: '素材',
    key: 'planLandUrl',
    dataIndex: 'planLandUrl',
    scopedSlots: { customRender: 'planLandUrl' },
  },
  {
    title: '状态',
    key: 'planStatus',
    dataIndex: 'planStatus',
    scopedSlots: { customRender: 'planStatus' },
  },
  {
    title: '	操作',
    key: 'action',
    scopedSlots: { customRender: 'action' },
  },
]
const projectColumns = [
  {
    title: '排序',
    key: 'sortrank',
    scopedSlots: { customRender: 'sortrank' },
  },
  {
    title: '计划名称',
    key: 'planName',
    dataIndex: 'planName',
    scopedSlots: { customRender: 'planName' },
  },
  {
    title: '素材',
    key: 'planLandUrl',
    dataIndex: 'planLandUrl',
    scopedSlots: { customRender: 'planLandUrl' },
  },
  {
    title: '状态',
    key: 'planStatus',
    dataIndex: 'planStatus',
    scopedSlots: { customRender: 'planStatus' },
    filters: [
      { text: '待开始', value: '0' },
      { text: '投放中', value: '1' },
      { text: '已停止', value: '2' },
    ],
    onFilter: (value, record) => {
      return value == record.planStatus
    },
  },
  {
    title: '	操作',
    key: 'action',
    scopedSlots: { customRender: 'action' },
  },
]
export { columns, projectColumns, projectColumn }
